import React from 'react';
import style from './button.module.less';

interface ButtonProps {
    children: React.ReactNode;
    className?: string;
    onClick?: () => void;
}

function Button({ children, className = '', onClick }: ButtonProps) {
    return (
        <button className={`${style.default} ${className}`} onClick={onClick}>
            {children}
        </button>
    );
}

export default Button;